﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RNA_Libraries
{
  public class SequenceGenerator
  {
    static readonly string[] Nucls = new[] { "A", "U", "G", "C", "" };
    static readonly Random Rnd = new Random(DateTime.Now.Millisecond);

    public static string RandomSymbol
    {
      get
      {
        return Nucls[Rnd.Next(5)];
      }
    }

    public static Sequence Generate(int l)
    {
      var data = new StringBuilder(l);
      for (int i = 0; i < l; i++)
      {
        data.Append(RandomSymbol);
      }
      return new Sequence(data.ToString());
    }
  }
}
